package jcer.test;

import java.beans.PropertyVetoException;
import java.sql.SQLException;
import java.util.ArrayList;
import java.util.HashMap;

import net.sf.json.JSONArray;

public class Json {

	/**
	 * @param args
	 * @throws PropertyVetoException
	 * @throws SQLException
	 * @throws InterruptedException
	 */
	public static void main(String[] args) throws PropertyVetoException,
			SQLException, InterruptedException {
		ArrayList<HashMap<String,String>> data = new ArrayList<HashMap<String,String>>();
		HashMap<String,String> row = new HashMap<String,String>();
		row.put("a", "b");
		data.add(row);
		JSONArray jsonArray = JSONArray.fromObject(data);
		System.out.println(jsonArray);
	}

}
